home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / overview / moreisbetter / mib-libraries / moresetup.prefix < prev   
Encoding:
Text File  |  2000-09-28  |  2.1 KB  |  68 lines

  1. (*
  2.     File:        MoreSetup.prefix
  3.  
  4.     Contains:    Sets up conditions for MoreIsBetter.
  5.  
  6.     Written by:    Quinn
  7.  
  8.     Copyright:    Copyright © 1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.  
  20. *)
  21.  
  22. (*
  23.     IMPORTANT:
  24.     
  25.     This file is used as the Pascal prefix file, as specified "Pascal Language"
  26.     preferences panel.  It only contains compiler variable definitions.  These
  27.     have to be in a prefix file because of the way the Pascal compiler works.
  28.     
  29.     Other global definitions go into the "MoreSetup.p" unit, which code must
  30.     explicitly use, just like C code has to explicitly include "MoreSetup.h".
  31.     
  32. *)
  33.  
  34. (*
  35.     //    We never want to use old names or locations.
  36.     //    Since these settings must be consistent all the way through
  37.     //    a compilation unit, and since we don't want to silently
  38.     //    change them out from under a developer who uses a prefix
  39.     //    file (C/C++ panel of Target Settings), we simply complain
  40.     //    if they are already set in a way we don't like.
  41. *)
  42.  
  43. {$ifc undefined OLDROUTINELOCATIONS}
  44.     {$setc OLDROUTINELOCATIONS := false}
  45. {$elsec}
  46.     {$ifc OLDROUTINELOCATIONS}
  47.         ••• OLDROUTINELOCATIONS must be FALSE when compiling MoreIsBetter. •••
  48.     {$endc}
  49. {$endc}
  50.  
  51. {$ifc undefined OLDROUTINENAMES}
  52.     {$setc OLDROUTINENAMES := false}
  53. {$elsec}
  54.     {$ifc OLDROUTINENAMES}
  55.         ••• OLDROUTINENAMES must be FALSE when compiling MoreIsBetter. •••
  56.     {$endc}
  57. {$endc}
  58.  
  59. (*
  60.     //    We usually want asserions and other debugging code
  61.     //    turned on, but you can turn it all off if you like
  62.     //    by setting MORE_DEBUG to 0.
  63. *)
  64.  
  65. {$ifc undefined MORE_DEBUG}
  66.     {$setc MORE_DEBUG := TRUE}
  67. {$endc}
  68.